improve: week calendar UX and throughput dashboard cards#189
Conversation
WeeklyCalendar: - Today ボタンをカレンダーポップアップ内の「今週に戻る」に移動 - 週ラベルを常に M/D – M/D 形式に統一(年またぎでも幅安定) - カレンダーのボーダー二重表示を修正 Throughput Merged/Deployed: - Objective の grid 表示を Big Number カード3枚に変更 - 中央値(Median Time to Merge/Deploy)を追加 - テーブルタイトルの冗長な日付・件数表示を削除 Throughput Ongoing: - テーブルタイトルを Big Number カード2枚に変更(件数 + Median Age) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
AppDataTable に children スロットを追加し、ツールバーとテーブルの間に コンテンツを差し込めるようにした。 Merged/Deployed: カレンダーを AppDataTable の title に、 カードを children に配置し、カレンダーと Options が同じ行に収まるように。 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
カレンダーの prev/next ボタンと Options ボタンを ghost に変更し ボーダーのノイズを軽減。日付表示ボタンのみ outline を維持。 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
前週のデータを並列取得し、各カードに前週比を表示。 件数・Achievement の増加は緑、Median Time の短縮も緑(invertColor)。 差分ゼロや前週データなしの場合は非表示。 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
|
Warning Rate limit exceeded
⌛ How to resolve this issue?After the wait time has elapsed, a review can be triggered using the We recommend that you space out your commits to avoid hitting the rate limit. 🚦 How do rate limits work?CodeRabbit enforces hourly rate limits for each developer per organization. Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout. Please see our FAQ for further information. ℹ️ Review info⚙️ Run configurationConfiguration used: defaults Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (11)
📝 WalkthroughWalkthroughAdds child rendering to AppDataTable, swaps several button variants to "ghost", simplifies the week-calendar UI/labels, adds median and calcStats utilities, introduces DiffBadge and StatCard, refactors throughput loaders to fetch previous-period data in parallel and surface current vs previous stats, and removes several generateMarkdown utilities. Changes
Sequence DiagramsequenceDiagram
participant Loader as Route Loader
participant DB as Data Source
participant calcStats as calcStats Helper
participant UI as Rendered Page
Loader->>DB: Fetch current period PRs (Promise.all)
Loader->>DB: Fetch previous period PRs (parallel)
DB-->>Loader: current PRs
DB-->>Loader: previous PRs
Loader->>calcStats: calcStats(current PRs)
activate calcStats
calcStats-->>Loader: { count, median, achievementRate }
deactivate calcStats
Loader->>calcStats: calcStats(previous PRs)
activate calcStats
calcStats-->>Loader: prev { count, median, achievementRate }
deactivate calcStats
Loader->>UI: Return loaderData (current + prev + teams + params)
UI->>UI: Render StatCard(s)
UI->>UI: Render DiffBadge(current vs prev)
Estimated code review effort🎯 4 (Complex) | ⏱️ ~45 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 2 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
📝 Coding Plan
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
- DiffBadge → throughput/+components/diff-badge.tsx (cn() 使用に修正) - StatCard → throughput/+components/stat-card.tsx - calcStats → throughput/+functions/calc-stats.ts (アクセサ引数で共通化) - median() → app/libs/stats.ts (4箇所の重複を解消、aggregate.ts も統一) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
コピーボタン削除でどこからも参照されなくなった。 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Summary
WeeklyCalendar
M/D – M/D形式に統一(年またぎでも幅安定)Throughput Merged/Deployed
Throughput Ongoing
AppDataTable
childrenスロットを追加(ツールバーとテーブル間にコンテンツ挿入可能に)Test plan
🤖 Generated with Claude Code
Summary by CodeRabbit
New Features
Improvements
Removed